{  Statement: http://acmp.ru/?main=task&id_task=294
   Verdict: Accepted
}
uses
    SysUtils, Math;

var
    a,b,c,d,e,f,k,t,aa,dd,kk:int64;

begin
reset(input, 'input.txt');
rewrite(output, 'output.txt');
read(a,b,c,d,e,f);
aa := a div 100 * b;
dd := d div 100 * e;
k := a - aa;
t := d - dd;
kk := min(k, t);
write(aa * c + dd * f + (k - kk) * c + (t - kk) * f);
end.